package com.aric.springbootmusic.service;

import com.aric.springbootmusic.entity.dto.AddRoleDTO;
import com.aric.springbootmusic.entity.pojo.Role;
import com.aric.springbootmusic.exceptions.NameDuplicationException;
import com.aric.springbootmusic.utils.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface RoleService extends IService<Role> {
    Result addNewRole(AddRoleDTO roleDTO) throws NameDuplicationException;

    Result findAllRole(Integer currentPage,Integer pageSize);

    Result findRoleById(Integer id);

    Result updateRoleById(Role role);

    Result deleteRole(Integer id);

    Result findRoles();

    Result updateRoleAuthor(Integer roleId, List<Integer> psIds);
}
